package com.zyl.pts.service;

import com.github.pagehelper.PageInfo;
import com.zyl.pts.config.enums.CodeAndMessageEnum;
import com.zyl.pts.domain.bean.IndexRecord;
import com.zyl.pts.domain.dto.IRDTO.IRConditionalDTO;
import com.zyl.pts.domain.dto.IRDTO.IRUpdateOrAddDTO;
import io.swagger.v3.oas.models.security.SecurityScheme;

import java.util.List;

/**
 * @version v1.0
 * @ProjectName: product_source
 * @Package: com.zyl.pts.service
 * @ClassName: IRService
 * @Description TODO()
 * @Author 翟玉龙
 * @Date 2024/11/19-19:05
 */
public interface IRService {

    /**
     * 查询指定参数指标记录
     * @param irConditionalDTO 指标记录查询条件
     * @return {@link PageInfo }<{@link IndexRecord }>
     */
    PageInfo<IndexRecord> queryIndexRecordByPage(IRConditionalDTO irConditionalDTO);

    /**
     * 新增或者修改指标记录
     * @param indexRecord 指标记录
     * @return {@link CodeAndMessageEnum }
     */
    CodeAndMessageEnum addOrUpdateIndexRecord(IRUpdateOrAddDTO indexRecord);

    /**
     * 根据id删除指标记录
     * @param irdId 指标记录id
     * @return {@link CodeAndMessageEnum }
     */
    CodeAndMessageEnum deleteIndexRecordById(Integer irdId);

    /**
     * 根据ids删除指标记录
     * @param irdIds 指标记录ids
     * @return {@link CodeAndMessageEnum }
     */
    CodeAndMessageEnum deleteIndexRecordByIds(List<Integer> irdIds);
}
